/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.cip.esymons.tramite.beans;

import java.util.List;
import org.cip.esymons.tramite.bc.TramiteDelegate;
import org.cip.esymons.tramite.be.EnumTipoTramite;
import org.cip.esymons.tramite.be.Tramite;

/**
 *
 * @author ChristianATE
 */
public class solicitudController {

    private TramiteDelegate delegadoTramite;
    private Tramite tramite;
    private List<Tramite> tramites;

    public solicitudController() {
        delegadoTramite=new TramiteDelegate();
    }

    private void listarTramites(){
        tramites=delegadoTramite.listarXTipo(EnumTipoTramite.Solicitud);
    }

    public String getcargar(){
        listarTramites();
        return "";
    }

    public String irSolicitud(){        
        return "solicitud";
    }

    public List<Tramite> getTramites() {
        return tramites;
    }

    public void setTramites(List<Tramite> tramites) {
        this.tramites = tramites;
    }

    /**
     * @return the tramite
     */
    public Tramite getTramite() {
        return tramite;
    }

    /**
     * @param tramite the tramite to set
     */
    public void setTramite(Tramite tramite) {
        this.tramite = tramite;
    }



}
